<?
$father_name = set_value('father_name',$student->fathername);
$father_mname = set_value('father_mname',$student->father_mname);
$father_lname = set_value('father_lname',$student->father_lname);
$father_citizenship = set_value('father_citizenship',$student->father_nationality);
$father_visa = set_value('father_visa',$student->father_visa);
$father_occup = set_value('father_occup',$student->father_occupation);
$father_office_tel = set_value('father_office_tel',$student->father_office_num);
$father_contact_no = set_value('father_contact_no',$student->father_contact_no);
$father_contact_no_text = set_value('father_contact_no_text',$student->father_contact_no_text);
$father_graduate_degree = set_value('father_graduate_degree',$student->father_graduate_degree);
$father_school = set_value('father_school',$student->father_school);
$father_income_bracket = set_value('father_income_bracket',$student->father_income_bracket);
$mother_name = set_value('mother_name',$student->mothername);
$mother_mname = set_value('mother_mname',$student->mother_mname);
$mother_lname = set_value('mother_lname',$student->mother_lname);
$mother_citizenship = set_value('mother_citizenship',$student->mother_nationality);
$mother_visa = set_value('mother_visa',$student->mother_visa);
$mother_occup = set_value('mother_occup',$student->mother_occupation);
$mother_office_tel = set_value('mother_office_tel',$student->mother_office_num);
$mother_contact_no = set_value('mother_contact_no',$student->mother_contact_no);
$mother_contact_no_text = set_value('mother_contact_no_text',$student->mother_contact_no_text);
$mother_graduate_degree = set_value('mother_graduate_degree',$student->mother_graduate_degree);
$mother_school = set_value('mother_school',$student->mother_school);
$mother_income_bracket = set_value('mother_income_bracket',$student->mother_income_bracket);
$step_father_name = set_value('step_father_name',$student->step_father_name);
$step_father_mname = set_value('step_father_mname',$student->step_father_mname);
$step_father_lname = set_value('step_father_lname',$student->step_father_lname);
$step_father_citizenship = set_value('step_father_citizenship',$student->step_father_citizenship);
$step_father_visa = set_value('step_father_visa',$student->step_father_visa);
$step_father_occup = set_value('step_father_occup',$student->step_father_occup);
$step_father_office_tel = set_value('step_father_office_tel',$student->step_father_office_tel);
$step_father_contact_no = set_value('step_father_contact_no',$student->step_father_contact_no);
$step_father_contact_no_text = set_value('step_father_contact_no_text',$student->step_father_contact_no_text);
$step_father_graduate_degree = set_value('step_father_graduate_degree',$student->step_father_graduate_degree);
$step_father_school = set_value('step_father_school',$student->step_father_school);
$step_father_income_bracket = set_value('step_father_income_bracket',$student->step_father_income_bracket);
$step_mother_name = set_value('step_mother_name',$student->step_mother_name);
$step_mother_mname = set_value('step_mother_mname',$student->step_mother_mname);
$step_mother_lname = set_value('step_mother_lname',$student->step_mother_lname);
$step_mother_citizenship = set_value('step_mother_citizenship',$student->step_mother_citizenship);
$step_mother_visa = set_value('step_mother_visa',$student->step_mother_visa);
$step_mother_occup = set_value('step_mother_occup',$student->step_mother_occup);
$step_mother_office_tel = set_value('step_mother_office_tel',$student->step_mother_office_tel);
$step_mother_contact_no = set_value('step_mother_contact_no',$student->step_mother_contact_no);
$step_mother_contact_no_text = set_value('step_mother_contact_no_text',$student->step_mother_contact_no_text);
$step_mother_graduate_degree = set_value('step_mother_graduate_degree',$student->step_mother_graduate_degree);
$step_mother_school = set_value('step_mother_school',$student->step_mother_school);
$step_mother_income_bracket = set_value('step_mother_income_bracket',$student->step_mother_income_bracket);
$guardian_name = set_value('guardian_name',$student->guardian_name);
$guardian_mname = set_value('guardian_mname',$student->guardian_mname);
$guardian_lname = set_value('guardian_lname',$student->guardian_lname);
$guardian_citizenship = set_value('guardian_citizenship',$student->guardian_citizenship);
$guardian_visa = set_value('guardian_visa',$student->guardian_visa);
$guardian_occup = set_value('guardian_occup',$student->guardian_occup);
$guardian_office_tel = set_value('guardian_office_tel',$student->guardian_office_tel);
$guardian_contact_no = set_value('guardian_contact_no',$student->guardian_contact_no);
$guardian_contact_no_text = set_value('guardian_contact_no_text',$student->guardian_contact_no_text);
$emergency_name = set_value('emergency_name',$student->emergency_name);
$emergency_address = set_value('emergency_address',$student->emergency_address);
$emergency_office_tel = set_value('emergency_office_tel',$student->emergency_office_tel);
$emergency_home_tel = set_value('emergency_home_tel',$student->emergency_home_tel);
$emergency_home_no = set_value('emergency_home_no',$student->emergency_home_no);
$failure_to_provide = set_value('failure_to_provide',$student->failure_to_provide);
$to_the_best = set_value('to_the_best',$student->to_the_best);

//CHECK if value updated , if yes check if approve, denied  or pending
/*
 * Function located at parent_helper
 */

$profile_request = isset($profile_request) ? $profile_request : false;
$req_id = isset($req_id) ? $req_id : 0;

$is_father_name = req_check_if_updated($req_id, 'fathername',$student->fathername, $profile_request);
$is_father_mname = req_check_if_updated($req_id, 'father_mname',$student->father_mname, $profile_request);
$is_father_lname = req_check_if_updated($req_id, 'father_lname',$student->father_lname, $profile_request);
$is_father_citizenship = req_check_if_updated($req_id, 'father_nationality',$student->father_nationality, $profile_request);
$is_father_visa = req_check_if_updated($req_id, 'father_visa',$student->father_visa, $profile_request);
$is_father_occup = req_check_if_updated($req_id, 'father_occupation',$student->father_occupation, $profile_request);
$is_father_office_tel = req_check_if_updated($req_id, 'father_office_num',$student->father_office_num, $profile_request);
$is_father_contact_no = req_check_if_updated($req_id, 'father_contact_no',$student->father_contact_no, $profile_request);
$is_father_contact_no_text = req_check_if_updated($req_id, 'father_contact_no_text',$student->father_contact_no_text, $profile_request);
$is_father_graduate_degree = req_check_if_updated($req_id, 'father_graduate_degree',$student->father_graduate_degree, $profile_request);
$is_father_school = req_check_if_updated($req_id, 'father_school',$student->father_school, $profile_request);
$is_father_income_bracket = req_check_if_updated($req_id, 'father_income_bracket',$student->father_income_bracket, $profile_request);
$is_mother_name = req_check_if_updated($req_id, 'mothername',$student->mothername, $profile_request);
$is_mother_mname = req_check_if_updated($req_id, 'mother_mname',$student->mother_mname, $profile_request);
$is_mother_lname = req_check_if_updated($req_id, 'mother_lname',$student->mother_lname, $profile_request);
$is_mother_citizenship = req_check_if_updated($req_id, 'mother_nationality',$student->mother_nationality, $profile_request);
$is_mother_visa = req_check_if_updated($req_id, 'mother_visa',$student->mother_visa, $profile_request);
$is_mother_occup = req_check_if_updated($req_id, 'mother_occupation',$student->mother_occupation, $profile_request);
$is_mother_office_tel = req_check_if_updated($req_id, 'mother_office_num',$student->mother_office_num, $profile_request);
$is_mother_contact_no = req_check_if_updated($req_id, 'mother_contact_no',$student->mother_contact_no, $profile_request);
$is_mother_contact_no_text = req_check_if_updated($req_id, 'mother_contact_no_text',$student->mother_contact_no_text, $profile_request);
$is_mother_graduate_degree = req_check_if_updated($req_id, 'mother_graduate_degree',$student->mother_graduate_degree, $profile_request);
$is_mother_school = req_check_if_updated($req_id, 'mother_school',$student->mother_school, $profile_request);
$is_mother_income_bracket = req_check_if_updated($req_id, 'mother_income_bracket',$student->mother_income_bracket, $profile_request);
$is_step_father_name = req_check_if_updated($req_id, 'step_father_name',$student->step_father_name, $profile_request);
$is_step_father_mname = req_check_if_updated($req_id, 'step_father_mname',$student->step_father_mname, $profile_request);
$is_step_father_lname = req_check_if_updated($req_id, 'step_father_lname',$student->step_father_lname, $profile_request);
$is_step_father_citizenship = req_check_if_updated($req_id, 'step_father_citizenship',$student->step_father_citizenship, $profile_request);
$is_step_father_visa = req_check_if_updated($req_id, 'step_father_visa',$student->step_father_visa, $profile_request);
$is_step_father_occup = req_check_if_updated($req_id, 'step_father_occup',$student->step_father_occup, $profile_request);
$is_step_father_office_tel = req_check_if_updated($req_id, 'step_father_office_tel',$student->step_father_office_tel, $profile_request);
$is_step_father_contact_no = req_check_if_updated($req_id, 'step_father_contact_no',$student->step_father_contact_no, $profile_request);
$is_step_father_contact_no_text = req_check_if_updated($req_id, 'step_father_contact_no_text',$student->step_father_contact_no_text, $profile_request);
$is_step_father_graduate_degree = req_check_if_updated($req_id, 'step_father_graduate_degree',$student->step_father_graduate_degree, $profile_request);
$is_step_father_school = req_check_if_updated($req_id, 'step_father_school',$student->step_father_school, $profile_request);
$is_step_father_income_bracket = req_check_if_updated($req_id, 'step_father_income_bracket',$student->step_father_income_bracket, $profile_request);
$is_step_mother_name = req_check_if_updated($req_id, 'step_mother_name',$student->step_mother_name, $profile_request);
$is_step_mother_mname = req_check_if_updated($req_id, 'step_mother_mname',$student->step_mother_mname, $profile_request);
$is_step_mother_lname = req_check_if_updated($req_id, 'step_mother_lname',$student->step_mother_lname, $profile_request);
$is_step_mother_citizenship = req_check_if_updated($req_id, 'step_mother_citizenship',$student->step_mother_citizenship, $profile_request);
$is_step_mother_visa = req_check_if_updated($req_id, 'step_mother_visa',$student->step_mother_visa, $profile_request);
$is_step_mother_occup = req_check_if_updated($req_id, 'step_mother_occup',$student->step_mother_occup, $profile_request);
$is_step_mother_office_tel = req_check_if_updated($req_id, 'step_mother_office_tel',$student->step_mother_office_tel, $profile_request);
$is_step_mother_contact_no = req_check_if_updated($req_id, 'step_mother_contact_no',$student->step_mother_contact_no, $profile_request);
$is_step_mother_contact_no_text = req_check_if_updated($req_id, 'step_mother_contact_no_text',$student->step_mother_contact_no_text, $profile_request);
$is_step_mother_graduate_degree = req_check_if_updated($req_id, 'step_mother_graduate_degree',$student->step_mother_graduate_degree, $profile_request);
$is_step_mother_school = req_check_if_updated($req_id, 'step_mother_school',$student->step_mother_school, $profile_request);
$is_step_mother_income_bracket = req_check_if_updated($req_id, 'step_mother_income_bracket',$student->step_mother_income_bracket, $profile_request);
$is_guardian_name = req_check_if_updated($req_id, 'guardian_name',$student->guardian_name, $profile_request);
$is_guardian_mname = req_check_if_updated($req_id, 'guardian_mname',$student->guardian_mname, $profile_request);
$is_guardian_lname = req_check_if_updated($req_id, 'guardian_lname',$student->guardian_lname, $profile_request);
$is_guardian_citizenship = req_check_if_updated($req_id, 'guardian_citizenship',$student->guardian_citizenship, $profile_request);
$is_guardian_visa = req_check_if_updated($req_id, 'guardian_visa',$student->guardian_visa, $profile_request);
$is_guardian_occup = req_check_if_updated($req_id, 'guardian_occup',$student->guardian_occup, $profile_request);
$is_guardian_office_tel = req_check_if_updated($req_id, 'guardian_office_tel',$student->guardian_office_tel, $profile_request);
$is_guardian_contact_no = req_check_if_updated($req_id, 'guardian_contact_no',$student->guardian_contact_no, $profile_request);
$is_guardian_contact_no_text = req_check_if_updated($req_id, 'guardian_contact_no_text',$student->guardian_contact_no_text, $profile_request);
$is_emergency_name = req_check_if_updated($req_id, 'emergency_name',$student->emergency_name, $profile_request);
$is_emergency_address = req_check_if_updated($req_id, 'emergency_address',$student->emergency_address, $profile_request);
$is_emergency_office_tel = req_check_if_updated($req_id, 'emergency_office_tel',$student->emergency_office_tel, $profile_request);
$is_emergency_home_tel = req_check_if_updated($req_id, 'emergency_home_tel',$student->emergency_home_tel, $profile_request);
$is_emergency_home_no = req_check_if_updated($req_id, 'emergency_home_no',$student->emergency_home_no, $profile_request);
$is_failure_to_provide = req_check_if_updated($req_id, 'failure_to_provide',$student->failure_to_provide, $profile_request);
$is_to_the_best = req_check_if_updated($req_id, 'to_the_best',$student->to_the_best, $profile_request);
?>

<div>
<div class="panel callout"><h6>Parent Legal Information</h6></div>
<!-- start of Set SECTION-->
	
<div class="inner-border">

<?=form_open('',' class="custom profile_form" id ="parent_legal_information" ')?>

	
	<fieldset>
		<legend>Information About The Father</legend>
		
			<div class="large-4 columns">
				<label style="font-weight:bold;">First Name</label> <?=$is_father_name->checkbox?>
				<input class="<?=$is_father_name->changed?$is_father_name->class:''?>" type="text" name="father_name" value="<?=$father_name;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Middle Name:</label> <?=$is_father_mname->checkbox?>
				<input class="<?=$is_father_mname->changed?$is_father_mname->class:''?>" type="text" name="father_mname" value="<?=$father_mname;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Last Name:</label> <?=$is_father_lname->checkbox?>
				<input class="<?=$is_father_lname->changed?$is_father_lname->class:''?>" type="text" name="father_lname" value="<?=$father_lname;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Citizenship (Passport)</label> <?=$is_father_citizenship->checkbox?>
				<input class="<?=$is_father_citizenship->changed?$is_father_citizenship->class:''?>" type="text" name="father_citizenship" value="<?=$father_citizenship;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Philippine Visa Status</label> <?=$is_father_visa->checkbox?>
				<input class="<?=$is_father_visa->changed?$is_father_visa->class:''?>" type="text" name="father_visa" value="<?=$father_visa;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Employer or Organization</label> <?=$is_father_occup->checkbox?>
				<input class="<?=$is_father_occup->changed?$is_father_occup->class:''?>" type="text" name="father_occup" value="<?=$father_occup;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Office Phone Number</label> <?=$is_father_office_tel->checkbox?>
				<input class="<?=$is_father_office_tel->changed?$is_father_office_tel->class:''?>" type="text" name="father_office_tel" value="<?=$father_office_tel;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Mobile Number</label> <?=$is_father_contact_no->checkbox?>
				<input class="<?=$is_father_contact_no->changed?$is_father_contact_no->class:''?>" type="text" name="father_contact_no" value="<?=$father_contact_no;?>">
			</div>
			<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Graduate Degree</label> <?=$is_father_graduate_degree->checkbox?>
				<input class="<?=$is_father_graduate_degree->changed?$is_father_graduate_degree->class:''?>" type="text" name="father_graduate_degree" value="<?=$father_graduate_degree;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">School</label> <?=$is_father_school->checkbox?>
				<input class="<?=$is_father_school->changed?$is_father_school->class:''?>" type="text" name="father_school" value="<?=$father_school;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Income Bracket</label> <?=$is_father_income_bracket->checkbox?>
				<input class="<?=$is_father_income_bracket->changed?$is_father_income_bracket->class:''?>" type="text" name="father_income_bracket" value="<?=$father_income_bracket;?>">
			</div>
		<div class="clearfix"></div>
		<div>
			<label>
			<?=$is_father_contact_no_text->checkbox?> <br/>
			<?php $ftclass = $is_father_contact_no_text->changed?$is_father_contact_no_text->class:''; ?>
			<?php if($father_contact_no_text == 'yes'){ ?>
			<?=form_checkbox('father_contact_no_text', 'yes', TRUE, "class='left $ftclass'");?>
			<?php }else{ ?>
			<?=form_checkbox('father_contact_no_text', 'yes', FALSE, "class='left $ftclass'");?><?php } ?>&nbsp;<span style="font-weight:bold;">Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label> 
		</div>
	</fieldset>
	
	<fieldset>
		<legend>Information About The Mother</legend>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Firstname Name</label> <?=$is_mother_name->checkbox?>
				<input class="<?=$is_mother_name->changed?$is_mother_name->class:''?>" type="text" name="mother_name" value="<?=$mother_name;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Middle Name</label> <?=$is_mother_mname->checkbox?>
				<input class="<?=$is_mother_mname->changed?$is_mother_mname->class:''?>" type="text" name="mother_mname" value="<?=$mother_mname;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Last Name</label> <?=$is_mother_lname->checkbox?>
				<input class="<?=$is_mother_lname->changed?$is_mother_lname->class:''?>" type="text" name="mother_lname" value="<?=$mother_lname;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Citizenship (Passport)</label> <?=$is_mother_citizenship->checkbox?>
				<input class="<?=$is_mother_citizenship->changed?$is_mother_citizenship->class:''?>" type="text" name="mother_citizenship" value="<?=$mother_citizenship;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Philippine Visa Status</label> <?=$is_mother_visa->checkbox?>
				<input class="<?=$is_mother_visa->changed?$is_mother_visa->class:''?>" type="text" name="mother_visa" value="<?=$mother_visa;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Employer or Organization</label> <?=$is_mother_occup->checkbox?>
				<input class="<?=$is_mother_occup->changed?$is_mother_occup->class:''?>" type="text" name="mother_occup" value="<?=$mother_occup;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Office Phone Number</label> <?=$is_mother_office_tel->checkbox?>
				<input class="<?=$is_mother_office_tel->changed?$is_mother_office_tel->class:''?>" type="text" name="mother_office_tel" value="<?=$mother_office_tel;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Mobile Number</label> <?=$is_mother_contact_no->checkbox?>
				<input class="<?=$is_mother_contact_no->changed?$is_mother_contact_no->class:''?>" type="text" name="mother_contact_no" value="<?=$mother_contact_no;?>">
			</div>
			<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Graduate Degree</label> <?=$is_mother_graduate_degree->checkbox?>
				<input class="<?=$is_mother_graduate_degree->changed?$is_mother_graduate_degree->class:''?>" type="text" name="mother_graduate_degree" value="<?=$mother_graduate_degree;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">School</label> <?=$is_mother_school->checkbox?>
				<input class="<?=$is_mother_school->changed?$is_mother_school->class:''?>" type="text" name="mother_school" value="<?=$mother_school;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Income Bracket</label> <?=$is_mother_income_bracket->checkbox?>
				<input class="<?=$is_mother_income_bracket->changed?$is_mother_income_bracket->class:''?>" type="text" name="mother_income_bracket" value="<?=$mother_income_bracket;?>">
			</div>
		<div class="clearfix"></div>
		<div>
			<label>
			<?=$is_mother_contact_no_text->checkbox?> <br/>
			<?php $mtclass = $is_mother_contact_no_text->changed?$is_mother_contact_no_text->class:''; ?>
			<?php if($mother_contact_no_text == 'yes'){ ?>
			<?=form_checkbox('mother_contact_no_text', 'yes', TRUE, "class='left $mtclass'");?>
			<?php }else{ ?>
			<?=form_checkbox('mother_contact_no_text', 'yes', FALSE, "class='left $mtclass'");?><?php } ?>&nbsp;<span style="font-weight:bold;">Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label> 
		</div>
	</fieldset>
	
	<fieldset>
		<legend>Information About The Step-Father</legend>
			<div class="large-4 columns">
				<label style="font-weight:bold;">First Name</label> <?=$is_step_father_name->checkbox?>
				<input class="<?=$is_step_father_name->changed?$is_step_father_name->class:''?>" type="text" name="step_father_name" value="<?=$step_father_name;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Middle Name</label> <?=$is_step_father_mname->checkbox?>
				<input class="<?=$is_step_father_mname->changed?$is_step_father_mname->class:''?>" type="text" name="step_father_mname" value="<?=$step_father_mname;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Last Name</label> <?=$is_step_father_lname->checkbox?>
				<input class="<?=$is_step_father_lname->changed?$is_step_father_lname->class:''?>" type="text" name="step_father_lname" value="<?=$step_father_lname;?>">
			</div>

		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Citizenship (Passport)</label> <?=$is_step_father_citizenship->checkbox?>
				<input class="<?=$is_step_father_citizenship->changed?$is_step_father_citizenship->class:''?>" type="text" name="step_father_citizenship" value="<?=$step_father_citizenship;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Philippine Visa Status</label> <?=$is_step_father_visa->checkbox?>
				<input class="<?=$is_step_father_visa->changed?$is_step_father_visa->class:''?>" type="text" name="step_father_visa" value="<?=$step_father_visa;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Employer or Organization</label> <?=$is_step_father_occup->checkbox?>
				<input class="<?=$is_step_father_occup->changed?$is_step_father_occup->class:''?>" type="text" name="step_father_occup" value="<?=$step_father_occup;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Office Phone Number</label> <?=$is_step_father_office_tel->checkbox?>
				<input class="<?=$is_step_father_office_tel->changed?$is_step_father_office_tel->class:''?>" type="text" name="step_father_office_tel" value="<?=$step_father_office_tel;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Mobile Number</label> <?=$is_step_father_contact_no->checkbox?>
				<input class="<?=$is_step_father_contact_no->changed?$is_step_father_contact_no->class:''?>" type="text" name="step_father_contact_no" value="<?=$step_father_contact_no;?>">
			</div>
			<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Graduate Degree</label> <?=$is_step_father_graduate_degree->checkbox?>
				<input class="<?=$is_step_father_graduate_degree->changed?$is_step_father_graduate_degree->class:''?>" type="text" name="step_father_graduate_degree" value="<?=$step_father_graduate_degree;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">School</label> <?=$is_step_father_school->checkbox?>
				<input class="<?=$is_step_father_school->changed?$is_step_father_school->class:''?>" type="text" name="step_father_school" value="<?=$step_father_school;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Income Bracket</label> <?=$is_step_father_income_bracket->checkbox?>
				<input class="<?=$is_step_father_income_bracket->changed?$is_step_father_income_bracket->class:''?>" type="text" name="step_father_income_bracket" value="<?=$step_father_income_bracket;?>">
			</div>
		<div class="clearfix"></div>
			<div>
				<label>
				<?=$is_step_father_contact_no_text->checkbox?> <br/>
				<?php $sftclass = $is_step_father_contact_no_text->changed?$is_step_father_contact_no_text->class:''; ?>
				<?php if($step_father_contact_no_text == 'yes'){ ?>
				<?=form_checkbox('step_father_contact_no_text', 'yes', TRUE, "class='left $sftclass'");?>
				<?php }else{ ?>
				<?=form_checkbox('step_father_contact_no_text', 'yes', FALSE, "class='left $sftclass'");?><?php } ?>&nbsp;<span style="font-weight:bold;">Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label> 
			</div>
	</fieldset>
	
	<fieldset>
		<legend>Information About The Step-Mother</legend>
			<div class="large-4 columns">
				<label style="font-weight:bold;">First Name</label> <?=$is_step_mother_name->checkbox?>
				<input class="<?=$is_step_mother_name->changed?$is_step_mother_name->class:''?>" type="text" name="step_mother_name" value="<?=$step_mother_name;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Middle Name</label> <?=$is_step_mother_mname->checkbox?>
				<input class="<?=$is_step_mother_mname->changed?$is_step_mother_mname->class:''?>" type="text" name="step_mother_mname" value="<?=$step_mother_mname;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Last Name</label> <?=$is_step_mother_lname->checkbox?>
				<input class="<?=$is_step_mother_lname->changed?$is_step_mother_lname->class:''?>" type="text" name="step_mother_lname" value="<?=$step_mother_lname;?>">
			</div>
		<div class="clearfix"></div>
		<div class="large-4 columns">
			<label style="font-weight:bold;">Citizenship (Passport)</label> <?=$is_step_mother_citizenship->checkbox?>
			<input class="<?=$is_step_mother_citizenship->changed?$is_step_mother_citizenship->class:''?>" type="text" name="step_mother_citizenship" value="<?=$step_mother_citizenship;?>">
		</div>
		<div class="large-4 columns">
			<label style="font-weight:bold;">Philippine Visa Status</label> <?=$is_step_mother_visa->checkbox?>
			<input class="<?=$is_step_mother_visa->changed?$is_step_mother_visa->class:''?>" type="text" name="step_mother_visa" value="<?=$step_mother_visa;?>">
		</div>
		<div class="clearfix"></div>
		<div class="large-4 columns">
			<label style="font-weight:bold;">Employer or Organization</label> <?=$is_step_mother_occup->checkbox?>
			<input class="<?=$is_step_mother_occup->changed?$is_step_mother_occup->class:''?>" type="text" name="step_mother_occup" value="<?=$step_mother_occup;?>">
		</div>
		<div class="large-4 columns">
			<label style="font-weight:bold;">Office Phone Number</label> <?=$is_step_mother_office_tel->checkbox?>
			<input class="<?=$is_step_mother_office_tel->changed?$is_step_mother_office_tel->class:''?>" type="text" name="step_mother_office_tel" value="<?=$step_mother_office_tel;?>">
		</div>
		<div class="large-4 columns">
			<label style="font-weight:bold;">Mobile Number</label> <?=$is_step_mother_contact_no->checkbox?>
			<input class="<?=$is_step_mother_contact_no->changed?$is_step_mother_contact_no->class:''?>" type="text" name="step_mother_contact_no" value="<?=$step_mother_contact_no;?>">
		</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Graduate Degree</label> <?=$is_step_mother_graduate_degree->checkbox?>
				<input class="<?=$is_step_mother_graduate_degree->changed?$is_step_mother_graduate_degree->class:''?>" type="text" name="step_mother_graduate_degree" value="<?=$step_mother_graduate_degree;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">School</label> <?=$is_step_mother_school->checkbox?>
				<input  class="<?=$is_step_mother_school->changed?$is_step_mother_school->class:''?>" type="text" name="step_mother_school" value="<?=$step_mother_school;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Income Bracket</label> <?=$is_step_mother_income_bracket->checkbox?>
				<input class="<?=$is_step_mother_income_bracket->changed?$is_step_mother_income_bracket->class:''?>" type="text" name="step_mother_income_bracket" value="<?=$step_mother_income_bracket;?>">
			</div>
		<div class="clearfix"></div>
		<div>
			<label>
			<?=$is_step_mother_contact_no_text->checkbox?> <br/>
			<?php $smtclass = $is_step_mother_contact_no_text->changed?$is_step_mother_contact_no_text->class:''; ?>
			<?php if($step_mother_contact_no_text == 'yes'){ ?>
			<?=form_checkbox('step_mother_contact_no_text', 'yes', TRUE, "class='left $smtclass'");?>
			<?php }else{ ?>
			<?=form_checkbox('step_mother_contact_no_text', 'yes', FALSE, "class='left $sftclass'");?><?php } ?>&nbsp;<span style="font-weight:bold;">Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label> 
		</div>
	</fieldset>
	<!--
	<fieldset>
		<legend>Information About The Legal Guardian</legend>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Guardian's First Name</label>
				<input type="text" name="guardian_name" value="<?=$guardian_name;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Guardian's Middle Name</label>
				<input type="text" name="guardian_mname" value="<?=$guardian_mname;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Guardian's Last Name</label>
				<input type="text" name="guardian_lname" value="<?=$guardian_lname;?>">
			</div>
			<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Citizenship (Passport)</label>
				<input type="text" name="guardian_citizenship" value="<?=$guardian_citizenship;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Philippine Visa Status</label>
				<input type="text" name="guardian_visa" value="<?=$guardian_visa;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Employer or Organization</label>
				<input type="text" name="guardian_occup" value="<?=$guardian_occup;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Office Phone Number</label>
				<input type="text" name="guardian_office_tel" value="<?=$guardian_office_tel;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Mobile Number</label>
				<input type="text" name="guardian_contact_no" value="<?=$guardian_contact_no;?>">
			</div>
		<div class="clearfix"></div>
		<div>
			<label>
			<?php if($guardian_contact_no_text == 'yes'){ ?>
			<?=form_checkbox('guardian_contact_no_text', 'yes', TRUE, 'class="left"');?>
			<?php }else{ ?>
			<?=form_checkbox('guardian_contact_no_text', 'yes', FALSE, 'class="left"');?><?php } ?>&nbsp;<span style="font-weight:bold;">Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label> 
		</div>
	</fieldset>
	
	<fieldset>
		<legend>Emergency Contact Information</legend>

			<div class="large-6 columns">
				<label style="font-weight:bold;">Name</label>
				<input type="text" name="emergency_name" value="<?=$emergency_name;?>">
			</div>
			<div class="large-6 columns">
				<label style="font-weight:bold;">Address</label>
				<input type="text" name="emergency_address" value="<?=$emergency_address;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-6 columns">
				<label style="font-weight:bold;">Office Phone</label>
				<input type="text" name="emergency_office_tel" value="<?=$emergency_office_tel;?>">
			</div>
			<div class="large-6 columns">
				<label style="font-weight:bold;">Home Phone</label>
				<input type="text" name="emergency_home_tel" value="<?=$emergency_home_tel;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-6 columns">
				<label style="font-weight:bold;">Mobile Number</label>
				<input type="text" name="emergency_home_no" value="<?=$emergency_home_no;?>">
			</div>
	</fieldset>
	-->
	<fieldset>
		<legend>Important Notice</legend>
		<div>
			<label>
			<?=$is_failure_to_provide->checkbox?> <br/>
			<?php $fpclass = $is_failure_to_provide->changed?$is_failure_to_provide->class:''; ?>
			<?php if($failure_to_provide == 'yes'){ ?>
			<?=form_checkbox('failure_to_provide', 'yes', TRUE, "class='left $fpclass'");?>
			<?php }else{ ?>
			<?=form_checkbox('failure_to_provide', 'yes', FALSE, "class='left $fpclass'");?><?php } ?>&nbsp;<span style="font-weight:bold;">Failure to provide complete and accurate information on this form will void the application and may result cancellation. WESTFIELDS INTERNATIONAL SCHOOL reserves the right to determine the placement of the applicant in the grade level or subjects deemed most appropriate for the student's school performance.</span></label> 
		</div>
		<div>
			<label>
			<?=$is_to_the_best->checkbox?> <br/>
			<?php $ttbclass = $is_to_the_best->changed?$is_to_the_best->class:''; ?>
			<?php if($to_the_best == 'yes'){ ?>
			<?=form_checkbox('to_the_best', 'yes', TRUE, "class='left $ttbclass'");?>
			<?php }else{ ?>
			<?=form_checkbox('to_the_best', 'yes', FALSE, "class='left $ttbclass'");?><?php } ?>&nbsp;<span style="font-weight:bold;">To the best of my knowledge, the information given on this form is true and correct.</span></label> 
		</div>
	</fieldset>
	
	<?if(isset($student->edit) && $student->edit === 1):?>
			<div>
				<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
				<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
				<input type="hidden" name="update_parent_legal_information" value="true">
				<input type="submit" name="update_parent_legal_information" value="Update Student Personal Legal Information" class="btn btn-primary">
			</div>
	<?endif;?>
</form>
</div>